Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

region error messages involving impls are confusing #53124

Merged
merged 3 commits into from Aug 10, 2018

Conversation

davidtwco
Copy link
Member

@davidtwco davidtwco commented Aug 6, 2018

Part of #52742.

r? @nikomatsakis

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 6, 2018
@nikomatsakis
Copy link
Contributor

@bors r+

1 similar comment
@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 7, 2018

📌 Commit 12037ff has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 7, 2018
@nikomatsakis
Copy link
Contributor

@bors delegate=davidtwco

@bors
Copy link
Contributor

bors commented Aug 7, 2018

✌️ @davidtwco can now approve this pull request

cramertj added a commit to cramertj/rust that referenced this pull request Aug 8, 2018
region error messages involving impls are confusing

Part of rust-lang#52742.

r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Aug 9, 2018

⌛ Testing commit 12037ff with merge c8cecf4...

bors added a commit that referenced this pull request Aug 9, 2018
region error messages involving impls are confusing

Part of #52742.

r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Aug 9, 2018

💔 Test failed - status-appveyor

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 9, 2018
@kennytm
Copy link
Member

kennytm commented Aug 9, 2018

@bors r-

 failures:
 ---- [ui] ui\nll\issue-52742.rs stdout ----
 diff of stderr:
-	error: unsatisfied lifetime constraints
-	  --> $DIR/issue-52742.rs:25:9
+	error[E0106]: missing lifetime specifiers
+	  --> $DIR/issue-52742.rs:23:10
3	   |
-	LL |     fn take_bar(&mut self, b: Bar<'_>) {
-	   |                 ---------         -- let's call this `'1`
-	   |                 |
-	   |                 has type `&mut Foo<'_, '2>`
-	LL |         self.y = b.z
-	   |         ^^^^^^^^^^^^ requires that `'1` must outlive `'2`
+	LL | impl Foo<'_, '_> {
+	   |          ^^ expected 2 lifetime parameters
10	
11	error: aborting due to previous error
12	
+	For more information about this error, try `rustc --explain E0106`.
13	

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 9, 2018
// except according to those terms.

#![feature(nll)]
#![feature(in_band_lifetimes)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem here is that we now need another feature gate here

#![feature(impl_header_lifetime_elision)]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 9, 2018

📌 Commit 31657c9 has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 9, 2018
@bors
Copy link
Contributor

bors commented Aug 10, 2018

⌛ Testing commit 31657c9 with merge f6d43ed...

bors added a commit that referenced this pull request Aug 10, 2018
region error messages involving impls are confusing

Part of #52742.

r? @nikomatsakis
@bors
Copy link
Contributor

bors commented Aug 10, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing f6d43ed to master...

@bors bors merged commit 31657c9 into rust-lang:master Aug 10, 2018
@davidtwco davidtwco deleted the issue-52742 branch August 10, 2018 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants